package com.czh.springboot04.service;

import com.czh.springboot04.entity.Question;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface QuestionService {
    int addQuestion(Question question);
    int deleteQuestion(int id);
    int updateQuestion(Question question);
    PageInfo<Question> findAll(int pageNum, int pageSize);
    PageInfo<Question> findByAll(int pageNum, int pageSize);
    List<Question> findById(int id);
}
